import 'package:flutter_app/model/login_bean.dart';

/// data : {"id":20243,"username":"13410505715","access_token":"HO01zTBuEJrKmMsFjQd7qevvMgYGSva313410505715","parent_id":0,"is_new":0,"status":10,"access_expire":1209600,"has_unionid":1,"coupon":[]}
/// status : 1

class ScanResult {
  LoginBean _data;
  int _status;

  LoginBean get data => _data;
  int get status => _status;

  ScanResult({
    LoginBean data,
      int status}){
    _data = data;
    _status = status;
}

  ScanResult.fromJson(dynamic json) {
    _data = json["data"] != null ? LoginBean.fromJson(json["data"]) : null;
    _status = json["status"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    if (_data != null) {
      map["data"] = _data.toJson();
    }
    map["status"] = _status;
    return map;
  }

}

